<?php 
	return CMap::mergeArray(
	    require(dirname(__FILE__).'/main.php'),
	    array(
            'name'     				=> 	'Quản lý trang',
            'theme'             	=>  FUEL_ADMIN,
            'defaultController'		=>	'user/admin',
			'components' 			=> 	array(
				'urlManager'		=>	array(
				  'urlFormat'		=>	'path',
					'rules'			=>	array(
						'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
					),
				),
			),
    		'import'=>array(
    				'application.models.*',
    				'application.components.*',
    				//'bootstrap.helpers.TbHtml',
    				'application.modules.user.models.*',
    				'application.modules.user.components.*',
    		),
    		'modules'=>array(
    				'user'=>array(
    						# encrypting method (php hash function)
    						'hash' => 'md5',
    		
    						# send activation email
    						'sendActivationMail' => true,
    		
    						# allow access for non-activated users
    						'loginNotActiv' => false,
    		
    						# activate user on registration (only sendActivationMail = false)
    						'activeAfterRegister' => false,
    		
    						# automatically login from registration
    						'autoLogin' => true,
    		
    						# registration path
    						'registrationUrl' => array('/user/registration'),
    		
    						# recovery password path
    						'recoveryUrl' => array('/user/recovery'),
    		
    						# login form path
    						'loginUrl' => array('/user/login'),
    		
    						# page after login
    						'returnUrl' => array('/user/profile'),
    		
    						# page after logout
    						'returnLogoutUrl' => array('/user/login'),
    				),
    		),
        )
	);
?>